#ifndef LISTADDDIALOG_H
#define LISTADDDIALOG_H

#include <QWidget>

namespace Ui {
class ListAddDialog;
}

class ListAddDialog : public QWidget
{
    Q_OBJECT

public:
    explicit ListAddDialog(QWidget *parent = nullptr, int type = 0);
    ~ListAddDialog();

private slots:
    void on_pushButton_clicked();

private:
    Ui::ListAddDialog *ui;
    /**
     * @brief type 0:add 1:insert
     */
    int type;
signals:
    void sendAddListItemText(QString s);
    void sendInsertListItemText(QString s);
};

#endif // LISTADDDIALOG_H
